var str = 'a2119naskdna'
var newStr = str.replace(/[a-zA-Z]/g, '')
console.log(newStr) // 2119
